//
//  HomepageTopImgCell.m
//  ppkc2016
//
//  Created by 拼凑的断音 on 2017/8/10.
//  Copyright © 2017年 拼凑的断音. All rights reserved.
//

#import "HomepageTopImgCell.h"
#import "XXTool.h"

@interface HomepageTopImgCell ()

@property (nonatomic, strong) UIImageView *img;

@end

@implementation HomepageTopImgCell
-(UIImageView *)img
{
    if (_img == nil)
    {
        _img = [UIImageView new];
        if([XXTool didCurrentLanguageChinese])
        {
            _img.image=[UIImage imageNamed:@"logo"];
        }
        else{
            _img.image=[UIImage imageNamed:@"logo_en"];
        }
        _img.contentMode = UIViewContentModeScaleAspectFit;
        [self addSubview:_img];
    }
    return _img;
}

-(void)refreshLayout:(CGRect)frame
{
    self.img.frame = CGRectMake(10, 20
                                , frame.size.width-20
                                , frame.size.height - 40);
}

@end
